package com.diaosidadui.array;

import java.lang.reflect.Array;

public class Demo {
    public static void main(String[] args) {
int a = 32+14+49+39+82+98;
        System.out.println(a);




    }
}
/*
    public static void main(String[] args) {
*/
/*

        int[] arr = {1, 2, 3, 4, 5, 6, 7};
*//*

*/
/*

                    0   3       1   2
 *//*
*/
/*

*//*

*/
/*        for (int i = 0; i < arr.length; i++) {
            if ( i < arr.length-i) {
                int temp = arr[i];
                arr[i] = arr[arr.length-1-i];
                arr[arr.length-1-i]= temp;
            }
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }*//*
*/
/*

        //删除  值是 4的  元素
*//*

*/
/*
        int[] arr2 = new int[arr.length - 1];
        for (int i = 0, k = 0; i < arr.length; i++) {
                if(arr[i]!= 4){
                    arr2[k]=arr[i];
                    k++;
            }
*//*
*/
/*

        //添加一个0元素到arr[3]的位置,其他元素后移
*//*

*/
/*
        int[] arr3 = new int[arr.length + 1];
        for (int i = 0; i < arr3.length; i++) {
            *//*
*/
/*

*//*

*/
/*arr3[0] = arr[0];
            arr3[1] = arr[1];
            arr3[2] = arr[2];

            arr3[3] = 0;


            arr3[4] = arr[3];
            arr3[5] = arr[4];
            arr3[6] = arr[5];

        *//*
*/
/*
*//*

*/
/*

            if(i<3){
                arr3[i] = arr[i];
            }else if(i==3){
                arr3[i]=0;
            }else{
                arr3[i] = arr[i-1];
            }
        }
        for (int i = 0; i < arr3.length; i++) {
            System.out.println(arr3[i]);
        }
*//*
*/
/*

        String s = "abcdef";
        String s2 = new String();
*//*

*/
/*        System.out.print(s2);
        for (int i = 0; i <s.length() ; i++) {
            s2  += s.charAt(s.length() - 1 - i);
        }
        System.out.println(s2);*//*
*/
/*

        StringBuilder stb = new StringBuilder();
        stb.append(s).reverse();
        String s3 = stb.toString();
        System.out.println(s3);






*//*

*/
/*        }
        for (int i = 0; i < arr2.length; i++) {
            System.out.println(arr2[i]);
        }*//*
*/
/*



    }
}

*/
